//const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

module.exports = {

  productionSourceMap: false,
  lintOnSave: false, //关闭eslint校验工具
  configureWebpack: {
    // plugins: [
    //   new BundleAnalyzerPlugin()
    // ],
    externals: {
      'vue': 'Vue',
      'vue-router': 'VueRouter',
      'vuex': 'Vuex',
      'axios': 'axios',
      'element-ui': 'Vue',
    }
  },
  devServer: {
    inline: true,
    proxy: {
      '/api': {
        target: 'http://gmall-h5-api.atguigu.cn',
      },
    }
  }
}